let os = uni.getStorageSync('osName')

var failMsg = '未找到 window.webkit';
var failMsgAndroid = '未找到 AndroidFunction';

// 提示
let msg = function(message) {
	uni.showToast({
		title: `${message}`,
		duration: 4000,
		icon: "none"
	});
}

// 关闭 web-view
let backAction = function() {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.backAction();
		} catch (e) {
			//TODO handle the exception
			msg(e);
		}
	} else {
		if (window.webkit) {
			// 调原生回退
			window.webkit.messageHandlers.backAction.postMessage('');
		} else {
			msg(failMsg)
		}
	}
}

// 跳转用户详情
let toUser = function(provider_id) {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.toUser(provider_id);
		} catch (e) {
			//TODO handle the exception
			msg(e);
		}
	} else {
		if (window.webkit) {
			window.webkit.messageHandlers.toUser.postMessage({
				"provider_id": `${provider_id}`
			});
		} else {
			msg(failMsg)
		}
	}
}

// 跳转直播
let toLive = function(rid, circle_id, open_type) {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			var data = {
				rid: rid,
				circle_id: circle_id,
				open_type: open_type
			}

			AndroidFunction.toLive(JSON.stringify(data));
		} catch (e) {
			//TODO handle the exception
			msg(e);
		}
	} else {
		if (window.webkit) {
			window.webkit.messageHandlers.toLive.postMessage({
				rid: rid,
				circle_id: circle_id,
				open_type: open_type
			});
		} else {
			msg(failMsg);
		}
	}
}

// 跳转发布
let toPublish = function(data) {
	if (data) {
		var map = JSON.stringify(data);
	} else {
		var map = '';
	}
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.toPublish(map);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}
	} else {
		if (!data) {
			data = '';
		}
		if (window.webkit) {
			window.webkit.messageHandlers.toPublish.postMessage(data);
		} else {
			msg(failMsg)
		}
	}
}

// 跳转聊天
let toChat = function(data) {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.toChat(JSON.stringify(data));
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}
	} else {
		if (window.webkit) {
			window.webkit.messageHandlers.toChat.postMessage(data);
		} else {
			msg(failMsg)
		}
	}
}

// 跳转商家
let toStore = function(store_id) {
	if(!store_id){
		return;
	}
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.toStore(`${store_id}`);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}
	} else {
		if (window.webkit) {
			window.webkit.messageHandlers.toStore.postMessage({
				store_id: store_id
			});
		} else {
			msg(failMsg);
		}
	}
}

// 跳转商品
let toProduct = function(store_id, product_id) {
	if (uni.getSystemInfoSync().platform == 'android') {
		var data = {
			store_id: store_id,
			product_id: product_id,
		}

		try {
			AndroidFunction.toProduct(JSON.stringify(data));
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}
	} else {
		if (window.webkit) {
			window.webkit.messageHandlers.toProduct.postMessage({
				product_id: product_id,
				store_id: store_id,
			});
		} else {
			msg(failMsg);
		}
	}
}

// 拨打电话
let makeCall = function(phone_number) {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.makeCall(`${phone_number}`);
		} catch (e) {
			//TODO handle the exception
			// msg(`${e}`);
		}
	} else {
		if (window.webkit) {
			window.webkit.messageHandlers.makeCall.postMessage({
				phone_number: phone_number
			});
		} else {
			// msg(failMsg)
		}
	}
}

// 分享图片
let toShareImage = function(src) {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.toShareImage(src);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}
	} else {
		if (window.webkit) {
			window.webkit.messageHandlers.toShareImage.postMessage({
				src: src
			});
		} else {
			msg(failMsg)
		}
	}
}

// 下载图片
let downLoadImage = function(src) {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.downLoadImage(src);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}
	} else {
		if (window.webkit) {
			window.webkit.messageHandlers.downLoadImage.postMessage({
				src: src
			});
		} else {
			msg(failMsg)
		}
	}
}

// 支付
let toPay = function(pay_type, order_id, type, config_id = 0) {
	// 1=商品，2=乐豆，3=金币，4=推广,5=VIP,6=曝光量充值
	if (uni.getSystemInfoSync().platform == 'android') {

		var data = {
			"pay_type": pay_type,
			"order_id": order_id,
			"type": type
		};

		try {
			AndroidFunction.toPay(JSON.stringify(data));
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {
		// goods_type: 1 VIP  2 金币  3 推广  4 推广余额
		// type: popularizePm 曝光点   popularizePay 推广
		var goods_type = 0;
		if (type == 'popularizePm') {
			goods_type = 6;
		}
		if (type == 'popularizePay') {
			goods_type = 3;
		}
		if (window.webkit) {
			// account 传值代表iOS能用
			// if (uni.getStorageSync('account') || pay_type != 3) {
			window.webkit.messageHandlers.toPay.postMessage({
				"pay_type": `${pay_type}`,
				"order_id": `${order_id}`,
				"type": `${type}`,
				"config_id": `${config_id}`,
				"goods_type": goods_type
			});
			// } else {
			// 	msg('暂不支持使用内购')
			// }
		} else {
			msg(failMsg)
		}
	}
}

// 关闭 web-view
let authorize = function(type) {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			// msg(`交互${type}`);
			AndroidFunction.authorize(type);
		} catch (err) {
			msg(`${err}`)
		}
	} else {
		if (window.webkit) {
			// 调原生回退
			window.webkit.messageHandlers.authorize.postMessage(type);
		} else {
			msg(failMsg)
		}
	}
}

// 关闭 
let getAuth = function() {
	if (uni.getSystemInfoSync().platform == 'android') {

		try {
			AndroidFunction.getAuth();
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {
		if (window.webkit) {
			// 调原生回退
			window.webkit.messageHandlers.getAuth.postMessage('');
		} else {
			msg(`${e}`);
		}
	}
}

// 乐玩选择 分类
let toCategory = function() {
	if (uni.getSystemInfoSync().platform == 'android') {

		try {
			AndroidFunction.toCategory();
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {

		try {
			window.webkit.messageHandlers.toCategory.postMessage('');
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	}
}

// 卡片发布-选择圈子
let toCircle = function() {
	if (uni.getSystemInfoSync().platform == 'android') {

		try {
			AndroidFunction.toCircle();
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {

		try {
			window.webkit.messageHandlers.toCircle.postMessage('');
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	}
}

// 卡片发布-选择带货链接
let toCommerce = function() {
	if (uni.getSystemInfoSync().platform == 'android') {

		try {
			AndroidFunction.toCommerce();
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {

		try {
			window.webkit.messageHandlers.toCommerce.postMessage('');
		} catch (e) {
			//TODO handle the exception
			msg(failMsg);
		}

	}
}

let toPayCard = function(data) {
	if (uni.getSystemInfoSync().platform == 'android') {

		try {
			// { data: 后台返回支付配置 , pay_type: 1 微信  2 支付宝 }
			AndroidFunction.toPayCard(JSON.stringify(data));
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {

		try {
			window.webkit.messageHandlers.toPayCard.postMessage(data);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	}
}



// 投诉
let toComplate = function(order_id) {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.toComplate(`${order_id}`);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {

		try {
			window.webkit.messageHandlers.toComplate.postMessage({
				order_id: order_id
			});
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	}
}

// 地址
let toChooseAddress = function() {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.toChooseAddress();
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {

		try {
			window.webkit.messageHandlers.toChooseAddress.postMessage('');
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	}
}

// 订单支付
let orderPay = function(data) {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.orderPay(JSON.stringify(data));
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {

		try {
			window.webkit.messageHandlers.orderPay.postMessage(data);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	}
}

// 订单支付
let setCardSuccess = function() {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.setCardSuccess();
		} catch (e) {
			// TODO handle the exception
			// msg(`${e}`);
		}

	} else {
		window.webkit.messageHandlers.setCardSuccess.postMessage('');
	}
}


// 订单支付
let toJinBiRecharge = function() {
	if (uni.getSystemInfoSync().platform == 'android') {

		try {
			AndroidFunction.toJinBiRecharge();
		} catch (e) {
			//TODO handle the exception
			msg(e);
		}

	} else {

		try {
			window.webkit.messageHandlers.toJinBiRecharge.postMessage('');
		} catch (e) {
			//TODO handle the exception
			msg(e);
		}

	}
}

// 获取省市区经纬度信息
let getLocation = function() {
	if (uni.getSystemInfoSync().platform == 'android') {

		try {
			AndroidFunction.getLocation();
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {
		try {
			window.webkit.messageHandlers.getLocation.postMessage('');
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	}
}

// 送礼
let sendGiftSuccess = function(data, to_nickname, to_uid) {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			console.log({
				list: data,
				to_nickname: to_nickname,
				to_uid: to_uid
			});
			console.log('给安卓的数据');
			AndroidFunction.sendGiftSuccess(JSON.stringify({
				list: data,
				to_nickname: to_nickname,
				to_uid: to_uid
			}));
		} catch (e) {
			//TODO handle the exception
			// msg(`${e}`);
		}

	} else {
		try {
			window.webkit.messageHandlers.sendGiftSuccess.postMessage(data);
		} catch (e) {
			//TODO handle the exception
			// msg(`${e}`);
		}

	}
}

// 跳转充值界面
let toRecharge = function() {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.toRecharge();
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {
		try {
			window.webkit.messageHandlers.toRecharge.postMessage('');
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	}
}

// 抽奖页面获取 直播间麦位信息
let getPeopleList = function() {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.getPeopleList();
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {
		try {
			window.webkit.messageHandlers.getPeopleList.postMessage('');
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	}
}

// 通知原生储存时间戳
let setTimestamp = function(timestamp) {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.setTimestamp(timestamp);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {
		try {
			window.webkit.messageHandlers.setTimestamp.postMessage('timestamp');
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	}
}

// 通知原生储存时间戳
let getTimestamp = function() {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.getTimestamp();
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}
	} else {
		try {
			window.webkit.messageHandlers.getTimestamp.postMessage('');
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}
	}
}

// 安卓跳转实人认证
let toCertification = function() {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.toCertification();
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}
	}
}

// 下载文件
let downLoadFile = function(url) {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.downLoadFile(url);
		} catch (e) {
			//TODO handle the exception
			console.lo(`${e}`);
		}
	} else {
		try {
			window.webkit.messageHandlers.downLoadFile.postMessage(url);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}
	}
}

// 跳转圈子页面
let toCirclePage = function(circle_id) {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.toCirclePage(circle_id);
		} catch (e) {
			//TODO handle the exception
			console.lo(`${e}`);
		}
	} else {
		try {
			window.webkit.messageHandlers.toCirclePage.postMessage(circle_id);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}
	}
}

// 分享链接到微信
let toShareUrl = function(data) {
	if (uni.getSystemInfoSync().platform == 'android') {
		var json = JSON.stringify(data);
		try {
			AndroidFunction.toShareUrl(json);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {
		try {
			window.webkit.messageHandlers.toShareUrl.postMessage(data);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	}
}

// 创建圈子成功
let createCircleSuccess = function(circle_id) {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.createCircleSuccess(circle_id);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {
		try {
			window.webkit.messageHandlers.createCircleSuccess.postMessage(circle_id);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	}
}

// 升级圈子成功
let upgradeCircleSuccess = function(circle_id) {
	console.log(circle_id , '这是创建圈子ID');
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.upgradeCircleSuccess(circle_id);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {
		try {
			window.webkit.messageHandlers.upgradeCircleSuccess.postMessage(circle_id);
		} catch (e) {
			//TODO handle the exception
			// msg(`${e}`);
		}

	}
}

// 分享商品到站内
let shareProductInset = function(data) {
	console.log(data);
	if (uni.getSystemInfoSync().platform == 'android') {
		var json = JSON.stringify(data);
		try {
			AndroidFunction.shareProductInset(json);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {
		try {
			window.webkit.messageHandlers.shareProductInset.postMessage(data);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	}
}

// 获取站内联系人
let getSharePeople = function() {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.getSharePeople();
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {
		try {
			window.webkit.messageHandlers.getSharePeople.postMessage('');
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	}
}

let showVipModal = function(circle_id) {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.showVipModal(`${circle_id}`);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {
		try {
			window.webkit.messageHandlers.showVipModal.postMessage(`${circle_id}`);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	}
}

let toEnterprise = function(url) {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.toEnterprise(`${url}`);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	}
}

let setBankCardSuccess = function(data) {
	var json = '';
	if (data) {
		json = JSON.stringify(data);
	}
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.setBankCardSuccess(json);
		} catch (e) {
			//TODO handle the exception
			// msg(`${e}`);
		}

	} else {
		try {
			window.webkit.messageHandlers.setBankCardSuccess.postMessage(json);
		} catch (e) {
			//TODO handle the exception
			// msg(`${e}`);
		}
	}
}

let toNewPage = function(type) {
	var ios_url = `pages/agreement/agreement?type=${type}`;
	var data = {
		url: '/pages/agreement/agreement',
		type: `&type=${type}`
	}
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.toNewPage(JSON.stringify(data));
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {
		try {
			window.webkit.messageHandlers.toNewPage.postMessage(ios_url);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}
	}
}

let toGiftGrid = function(user_id) {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.toGiftGrid(`${user_id}`);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {
		try {
			window.webkit.messageHandlers.toGiftGrid.postMessage(`${user_id}`);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}
	}
}

let backHome = function(user_id) {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.backHome();
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {
		try {
			window.webkit.messageHandlers.backHome.postMessage(``);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}
	}
}


let toUpgradePage= function(circle_id) {
	var token = uni.getStorageSync('token');
	var cid = uni.getStorageSync('cid');
	var terminal = uni.getStorageSync('terminal');
	var ios_url = `pages/circle/upgrade?circle_id=${circle_id}&token=${token}&cid=${cid}&terminal=${terminal}`;
	var data = {
		url: '/pages/circle/upgrade',
		type: `&circle_id=${circle_id}`
	}
	
	console.log(ios_url);
	
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.toNewPage(JSON.stringify(data));
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {
		try {
			window.webkit.messageHandlers.toNewPage.postMessage(ios_url);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}
	}
}


let getToken= function(circle_id) {
	
	if (uni.getSystemInfoSync().platform == 'android') {
		
	} else {
		try {
			console.log('调到ios');
			window.webkit.messageHandlers.getToken.postMessage('');
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}
	}
}


// 跳转充值VIP
let toBuyVip = function(circle_id) {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.toBuyVip(`${circle_id}`);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {
		try {
			window.webkit.messageHandlers.toBuyVip.postMessage(`${circle_id}`);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}
	}
}

let toRewardPage = function(provider_id , order_id , circle_id , store_id) {
	var token = uni.getStorageSync('token');
	var cid = uni.getStorageSync('cid');
	var terminal = uni.getStorageSync('terminal');
	var ios_url = `pages/circle/reward?provider_id=${provider_id}&token=${token}&cid=${cid}&terminal=${terminal}&store_id=${store_id}&order_id=${order_id}&circle_id=${circle_id}`;
	var data = {
		url: '/pages/order/reward',
		type: `&circle_id=${circle_id}&order_id=${order_id}&store_id=${store_id}&provider_id=${provider_id}`
	}
	
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.toNewPage(JSON.stringify(data));
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {
		try {
			window.webkit.messageHandlers.toNewPage.postMessage(ios_url);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}
	}
}


// 跳转充值VIP
let toAcitveVip = function(circle_id) {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.toAcitveVip(`${circle_id}`);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {
		try {
			window.webkit.messageHandlers.toAcitveVip.postMessage(`${circle_id}`);
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}
	}
}

// 商家扫码
let toScanCode = function() {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.toScanCode();
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {
		try {
			window.webkit.messageHandlers.toScanCode.postMessage("");
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}
	}
}


// 跳转认证
let toAuth = function() {
	if (uni.getSystemInfoSync().platform == 'android') {
		try {
			AndroidFunction.toAuth();
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}

	} else {
		try {
			window.webkit.messageHandlers.toAuth.postMessage("");
		} catch (e) {
			//TODO handle the exception
			msg(`${e}`);
		}
	}
}






export default {
	backAction, // 原生返回
	toUser, // 跳转用户详情
	toLive, // 跳转直播
	toPublish, // 跳转发布
	toChat, // 跳转聊天
	toStore, // 跳转商家
	toProduct, // 跳转商品
	makeCall, // 打电话
	toShareImage, // 分享
	downLoadImage, // 下载
	toPay, // 支付
	authorize, // 获取权限
	getAuth, // 认证返回

	toCategory, // 圈子-乐玩-分类选择
	toCircle, // 圈子-卡片-圈子选择
	toCommerce, // 圈子-卡片-带货链接
	toPayCard, // 圈子-卡片-带货链接
	setCardSuccess, // 圈子-卡片-修改成功回调

	// 订单
	toComplate, // 投诉
	toChooseAddress, // 选择收货地址
	orderPay, // 支付

	// 跳转金币充值
	toJinBiRecharge,

	// 获取定位信息
	getLocation,

	// 提示前端 播放礼物类型
	sendGiftSuccess,

	toRecharge, // 充值 无弹窗
	getPeopleList, // 获取直播间内麦位信息

	setTimestamp, // 通知原生储存时间戳

	getTimestamp, // 获取是否需要弹出

	toCertification, // 安卓跳转实人认证


	downLoadFile, // 下载文件

	toCirclePage, // 跳转圈子页面

	toShareUrl, // 分享链接到微信

	createCircleSuccess, // 创建圈子成功

	upgradeCircleSuccess, // 升级圈子成功

	shareProductInset, // 站内分享商品

	getSharePeople, // 获取站内联系人

	showVipModal, // VIP 充值弹窗

	toEnterprise, // 跳转企业认证扫脸

	// 跳新链接
	toNewPage,

	// 绑定银行卡成功
	setBankCardSuccess,


	// 跳转礼物墙
	toGiftGrid,
	
	// 跳转升级圈子
	toUpgradePage,
	
	// 回首页
	backHome,
	
	// 从新拿登录凭证
	getToken,
	
	// 跳转充值圈子VIP
	toBuyVip,
	
	// 跳转到打赏
	toRewardPage,
	
	// 活动跳转VIP
	toAcitveVip,
	
	// 商家扫码
	toScanCode,
	
	// 跳转认证
	toAuth,

}